/*
 * AacRtpUnPacker.h
 *
 *  Created on: 2018年4月21日
 *      Author: chuanjiang.zh@qq.com
 */

#ifndef AACRTPUNPACKER_H_
#define AACRTPUNPACKER_H_

#include "RtpPacker.h"
#include "DoubleByteBuffer.h"

namespace av
{

class AacRtpUnPacker: public RtpUnPacker
{
public:
	AacRtpUnPacker();
	virtual ~AacRtpUnPacker();

	virtual bool open(int mediaType, int codec);

	virtual bool unpack(RtpPacket& pktIn, MediaPacket& pktOut);

	virtual void close();

	virtual bool getFormat(MediaFormat& format);

protected:
	int	m_mediaType;
	DoubleByteBuffer	m_buffer;
	MediaFormat		m_format;

};


} /* namespace av */

#endif /* AACRTPUNPACKER_H_ */
